package com.design.cjm.structural.decorator.example2;

/**
 * 装饰者抽象类
 *
 * @Author: Jie Ming Chen
 * @Date: 2018/9/20
 * @Version 1.0
 */
public abstract class ClothesDecorator extends Person{

    private Person person;

    public void setPerson(Person person) {
        this.person = person;
    }

    @Override
    public void show() {
        if (person != null) {
            person.show();
        }
    }
}
